#include "mydatastruct.h"
class Solution {
public:
    vector<vector<int>> threeSum(vector<int>& nums) {
        vector<vector<int>> res;
        if (nums.size() < 3) return res;
        sort(nums.begin(), nums.end());
        int lastIter1Val = nums[0] - 1;
        for (auto iter1 = nums.begin(); iter1 != nums.end(); ++iter1) {
            if (*iter1 == lastIter1Val)  continue;
            lastIter1Val = *iter1;
            int lastIter2Val = *iter1 - 1;
            for (auto iter2 = iter1 + 1; iter2 != nums.end(); ++iter2) {
                if (*iter2 == lastIter2Val) continue;
                lastIter2Val = *iter2;
                if (find(iter2 + 1, nums.end(), -*iter1 - *iter2) != nums.end())
                    res.push_back(vector<int>{*iter1, * iter2, -*iter1 - *iter2});
            }
        }
        return res;
    }
};

void text(vector<vector<string>>* result, int i, int j) {
    vector<string> temp(j,"fdsf" );
    cout << temp.size() << endl;
    result->resize(i, temp);
}

int main() {
	//vector<vector<int>> mat{ {0,1,1},{1,2,12},{0,2,2} };

	//MyGraph mygraph;
	//mygraph.matInOutWei2myGraph(mat);

	//for (auto curNodePair : mygraph.graph) {
	//	for (auto nextNodePair : curNodePair.second->nexts) {
	//		cout << curNodePair.second << "---" << nextNodePair.second << "--->" << nextNodePair.first << endl;
	//	}
	//	//009F6E10---1--->00A01898
	//	//009F6E10---2--->00A018F8
	//	//00A01898---12--->00A018F8
	//}

    char ss='c';
    cout << sizeof(ss) << endl;

    //vector<vector<string>> res;
    //text(&res, 1, 1);
    //cout << res.size() << " " << res[0].size() << endl;
    //text(&res, 3, 2);
    //cout << res.size() << " " << res[0].size() << endl;


    //vector<int> vec1 = User_CreatVector();
    //vector<int> vec2 = User_CreatVector();
	//Solution solu;
 //   vector<int> mat;
 //   while (cin.peek() != '\n') {
 //       int x;
 //       cin >> x;
 //       mat.push_back(x);
 //   }
 //   auto res = solu.threeSum(mat);
 //   for (auto vec : res) {
 //       for (auto x : vec) {
 //           cout << x << ' ';
 //       }
 //       cout << endl;
 //   }
}
